package com.sumainfor.pc.epc.service.impl;

import com.sumainfor.pc.epc.dao.SupplierProviderMapper;
import com.sumainfor.pc.epc.service.SupplierProviderService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author Eddy·Chen
 * @Email 835033913@qq.com
 * @Create 2019-04-17 18:56
 */
@Service
@Transactional(rollbackFor = Exception.class)
@Log4j2
public class SupplierProviderServiceImpl implements SupplierProviderService {

    @Autowired
    private SupplierProviderMapper spm;

    /**
     * 财务部查询供应商账单数据
     *
     * @param remitId
     * @return
     */
    @Override
    public Map<String, Object> getSupplierOrderInfoForRemit(String remitId) {
        return spm.getSupplierOrderInfoForRemit(remitId);
    }

    /**
     * 筛选供应商 工具打款编号进行筛选出来
     *
     * @param supName
     * @param remitIds
     * @return
     */
    @Override
    public List<String> searchSupNameToRemitIds(String supName, List<String> remitIds) {
        return spm.searchSupNameToRemitIds(supName, remitIds);
    }

}
